﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlickrNet;

namespace FlickrDownloadr
{
    /// <summary>
    /// Container type for the photos retreived from Flickr Photo Service. This is a container that helps avoid
    /// tedious operations when we're rendering our thumbnail previews, etc.
    /// </summary>
    //public class PhotoContainer
    //{
    //    public Photo _photo = null;

    //    public Photo Photo
    //    {
    //        get { return _photo; }
    //        set { _photo = value; UpdateLicense(); }
    //    }

    //    public PhotoLicense License { get; set; }

    //    public bool IsCreativeCommons()
    //    {
    //        return (License != PhotoLicense.AllRightsReserved && License != PhotoLicense.None);
    //    }

    //    private void UpdateLicense()
    //    {
    //        //if (Photo == null)
    //        //{
    //        //    License = PhotoLicense.None;
    //        //}

    //        //Photo.License == LicenseType.

    //        //if (!string.IsNullOrEmpty(Photo.License))
    //        //{
    //        //    License = (PhotoLicense)int.Parse(Photo.License);
    //        //}
    //        //else
    //        //{
    //        //    License = PhotoLicense.AllRightsReserved;
    //        //}
    //    }
    //}
}
